package smoothcraft;

import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent;

import smoothcraft.EvenListeners.JoinEvent;

public class Listener implements org.bukkit.event.Listener{
	private Main main = Main.main;
	private JoinEvent join;
	public Listener() {
		Bukkit.getPluginManager().registerEvents(this,main);
	}
	@EventHandler
	public void PlayerJoinEvent(PlayerJoinEvent evt) {
		join = new JoinEvent(evt.getPlayer().getName());
		join.PlayerInit();
		evt.setJoinMessage(null);
	}
}
